const joi = require('joi')

const newpwd = joi.string().pattern(/^[\S]{6,12}/)

const password = joi.string().pattern(/^[\S]{6,12}/)

// @ts-ignore
const pass = joi.not(joi.ref('password')).concat(password)
const checkPass = joi.ref('password')

exports.schema_newpssword = {
    pass,
    checkPass
}


exports.schema_minNewPwd = {
    body: {
        newpwd
    }
}